import http from "@/api/http";
import axios from "axios";

export function updateuser(user){
    return http.put('/user/updateuser',user)
}
/*export function updateuser(user){
    return http.put('/user/updateuser',user)
}*/

// 头像上传
//已经写死在页面中

//获取用户头像
export function getAvatar(id){
    return http.getBlob('/user/image', {id})
}
export function getAvatar64(id){
    return http.getBlob('/user/image64', {id})
}
/*export function postAvatar(data){
    return http.get('/user/updateuseravatar', data)
}*/
